package com.dingqb.ktdemo.oop.inherited
/**
 Base
 */
abstract class Base {
	init {
		println("base");
	}

	abstract fun fbase()
}
/**
 Child
 */
class Child(name :String) : Base() {

	init {
		println("init$name");
	}

	override fun fbase() {

		println("Child--");

	}
}

fun main(args: Array<String>) {
	var child = Child("constructor -value ");
	child.fbase();

}
/**
 abstract
 final ，不可继承， 默认
 open 可继承
 
 */
open class defaultC{
	
}

class eDe :defaultC(){
	
}


